﻿@model Tesis2.Models.Persona

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Persona</legend>

        @Html.HiddenFor(model => model.PersonaID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombres)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombres)
            @Html.ValidationMessageFor(model => model.Nombres)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ApellidoPaterno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ApellidoPaterno)
            @Html.ValidationMessageFor(model => model.ApellidoPaterno)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ApellidoMaterno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ApellidoMaterno)
            @Html.ValidationMessageFor(model => model.ApellidoMaterno)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NumeroDocumento)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NumeroDocumento)
            @Html.ValidationMessageFor(model => model.NumeroDocumento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Telefono)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TipoDocumentoID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TipoDocumentoID)
            @Html.ValidationMessageFor(model => model.TipoDocumentoID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DireccionPersonaID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DireccionPersonaID)
            @Html.ValidationMessageFor(model => model.DireccionPersonaID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TipoPersonaID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TipoPersonaID)
            @Html.ValidationMessageFor(model => model.TipoPersonaID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EstadoPersonaID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EstadoPersonaID)
            @Html.ValidationMessageFor(model => model.EstadoPersonaID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.InstitucionPersonaID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.InstitucionPersonaID)
            @Html.ValidationMessageFor(model => model.InstitucionPersonaID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UsuarioPersonaID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UsuarioPersonaID)
            @Html.ValidationMessageFor(model => model.UsuarioPersonaID)
        </div>

        <p>
            <button type="submit" class="boton" id="Btn_enviar" ><img src="~/Images/aceptar.png"></button>
            <a href='@Url.Action("Index", "Persona")' class="boton">
                <img src='@Url.Content("~/Images/cancelar.png")' />
            </a>
        </p>
    </fieldset>
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
